
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author Luis
 */
public class UltraDvd  {

    Frame f = new Frame();
    Panel p;
    UltraDvd ul;


    public void principal() {


        
        f.setLayout(null);



        JLabel img=new JLabel();
        img.setIcon(new ImageIcon("recursos/Dibujo.jpg"));
        img.setBounds(100, 80 , 310, 120);
        f.add(img);
        
        
        JButton b=new JButton("Disc Creator");
        ImageIcon cre=new ImageIcon("recursos/discreator.jpg");
        b.setIcon(cre)       ;
        b.setBounds(450, 50, 120, 80);
        b.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                DiscCreator dc=new DiscCreator();
                dc.ventanac();
                f.hide();
            }
        });
        f.add(b);

        JButton b2=new JButton("Disc Burner");
        ImageIcon bur=new ImageIcon("recursos/Discburner.jpg");
        b2.setIcon(bur);
        b2.setBounds(450, 150, 120, 80);
        f.add(b2);
        b2.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
               DiscBurner db=new DiscBurner();
               db.ventanac();
               f.hide();
            }
        });

        JButton b3=new JButton("Mpg File Con");
        ImageIcon file=new ImageIcon("recursos/mpgconve.jpg");
        b3.setIcon(file);
        b3.setBounds(450, 250, 123, 80);
        f.add(b3);
        b3.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
            MpegFile mp=new MpegFile();
            mp.ventanaMpg();
            f.hide();
            }
        });

        JButton about=new JButton("About");
        about.setBounds(20, 350, 90, 25);
        f.add(about);
        about.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
               f.dispose();
                About a=new About();
                a.ventanaAbout();
                
            }
        });
        JButton help=new JButton("? Help");
        help.setBounds(100, 350, 90, 25);
        f.add(help);

       

        JButton home=new JButton("Home");
        home.setBounds(180, 350, 90, 25);
        f.add(home);

        JButton purch=new JButton("$ Purchase");
        purch.setBounds(260, 350, 100, 25);
        f.add(purch);

        JButton register=new JButton("Register");
        register.setBounds(360, 350, 90, 25);
        f.add(register);

        register.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                Register r=new Register();
                r.ventanar();
                f.dispose();
            }
        });

        Label l=new Label("Ultra DVD Creator");
        l.setFont(new Font("TimesRoman",Font.BOLD,20));
        l.setBounds(200, 20,300,40);
        f.add(l);

        TextField tf = new TextField("  Welcome to ultra DVD creator.");
        tf.setFont(new Font("TimesRoman",Font.BOLD,15));
        tf.setBounds(100, 210, 300, 100);
        tf.setEnabled(false);
        f.add(tf);





        f.addWindowListener(new WindowAdapter() {

            public void windowClosing(WindowEvent e) {
                System.exit(0);
            }
        });
        
      
       

        f.setBackground(Color.LIGHT_GRAY);
        f.setVisible(true);
        f.setSize(600, 400);
        f.setResizable(false);
        f.setLocation(300, 200);
    }

    public static void main(String args[]) {
        UltraDvd ul = new UltraDvd();
        ul.principal();
        
    }
}
